<?php
/**
 * Zhub - A PHP Framework For API Developer
 *
 * This file is part of the Zhub package.
 *
 * (c) YiLong Fan <fantiq@163.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author fanyilong <fantiq@163.com>
 * @copyright 2017 fanyilong. All rights reserved.
 * @package Zhub
 * @date 18-3-4
 */

namespace Zhub\HttpMessage;


use Zhub\DataStruct\Enum;

class RequestMethod extends Enum
{
    const ANY = 00;

    const GET = 01;

    const POST = 02;

    const PUT = 03;

    const DELETE = 04;

    const OPTIONS = 05;

    const HEAD = 06;

    const PATCH = 07;

    public static function initialize(): array
    {
        return [
            self::ANY => '',
            self::GET => 'GET',
            self::POST => 'POST',
            self::PUT => 'PUT',
            self::DELETE => 'DELETE',
            self::OPTIONS => 'OPTIONS',
            self::HEAD => 'HEAD',
            self::PATCH => 'PATCH',
        ];
    }
}